<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitepagealbum
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: AdminSettingsController.php 2011-05-05 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
class Sitepagealbum_AdminSettingsController extends Core_Controller_Action_Admin {
	
	//ACTION FOR GLOBAL SETTINGS
	public function indexAction() {
		
		if ($this->getRequest ()->isPost ()) {
			$sitepageKeyVeri = Engine_Api::_ ()->getApi ( 'settings', 'core' )->getSetting ( 'sitepage.lsettings', null );
			if (! empty ( $sitepageKeyVeri )) {
				Engine_Api::_ ()->getApi ( 'settings', 'core' )->setSetting ( 'sitepage.lsettings', trim ( $sitepageKeyVeri ) );
			}
			if ($_POST ['sitepagealbum_lsettings']) {
				$_POST ['sitepagealbum_lsettings'] = trim ( $_POST ['sitepagealbum_lsettings'] );
			}
		}
		$onactive_disabled = array ('sitepagealbum_photolightbox_show', 'sitepagealbum_photolightbox_bgcolor', 'sitepagealbum_photolightbox_fontcolor', 'sitepagealbum_truncation_limit', 'sitepagealbum_photolightbox_activityedit', 'sitepagealbum_show_activitymanual', 'submit' );
		$afteractive_disabled = array ('submit_lsetting', 'environment_mode', 'include_in_package' );
		include_once APPLICATION_PATH . '/application/modules/Sitepagealbum/controllers/license/license1.php';
	}
	
	//ACTION FOR FAQ
	public function faqAction() {
		
		$this->view->navigation = Engine_Api::_ ()->getApi ( 'menus', 'core' )->getNavigation ( 'sitepagealbum_admin_main', array (), 'sitepagealbum_admin_main_faq' );
	}
	
	public function readmeAction() {
	
	}

}

?>